<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link href="${pageContext.request.contextPath }/h-ui/css/extra.css" rel="stylesheet" type="text/css" />
    
</head>
<body>
    <div class="kuai">
        <div class="k-top">收货地址</div>
        <div class="k-content">
            <p>
                <span>姓名：${orders.oName}</span>
                <span>手机：${orders.oPhone}</span>
                <span>所在地：${orders.oAddress}</span>
                <br/>
                <span>详细地址：${orders.oAddressInfo}</span>
                <span>邮政编码：${orders.oPatternImg}</span>
            </p>
        </div>
    </div>
    <div class="kuai">
        <div class="k-top">产品信息</div>
        <c:forEach items="${orderslist}" var="item">
        <div class="k-content">
        
            <p>
            	<c:if test="${item.OL_TYPE!=3}">
                <img src="${imgpath}${item.OL_PATTERN_IMG}" />
                </c:if>
            	<c:if test="${item.OL_TYPE==3}">
                <img src="${pageContext.request.contextPath }/upload/${item.MESSAGE3}" />
                </c:if>
                 <c:choose>
                 <c:when test="${item.OL_TYPE==0}">
                <span>花型编号：${item.OL_PATTERN_NO}</span>
                <span>订单米数：${item.OL_FABRIC_SIZE}米</span>
                <span>印花工艺：${item.PP_NAME}</span>
                <br/>
                </c:when>
                 <c:when test="${item.OL_TYPE==1}">
                <span>花型编号：${item.OL_PATTERN_NO}</span>
                <span>订单米数：${item.OL_FABRIC_SIZE}米</span>
                <br/>
                </c:when>
                 <c:when test="${item.OL_TYPE==2}">
                <span>花型编号：${item.OL_PATTERN_NO}</span>
                <span>订单米数：${item.OL_FABRIC_SIZE}米</span>
                <span>印花工艺：${item.PP_NAME}</span>
                <br/>
                <span>布料编号：${item.OL_FABRIC_NO}</span>
                <br/>
                </c:when>
                 <c:when test="${item.OL_TYPE==3}">
                <span>布料编号：${item.OL_FABRIC_NO}</span>
                <span>订单米数：${item.OL_FABRIC_SIZE}米</span>
                <br/>
                </c:when>
                </c:choose>
                <c:choose>
				<c:when test="${item.OL_TYPE==0}">
				 <span>分类：印花</span>
				</c:when>
				<c:when test="${item.OL_TYPE==1}">
				 <span>分类：买断</span>
				</c:when>
				<c:when test="${item.OL_TYPE==2}">
				 <span>分类：成品</span>
				</c:when>
				<c:when test="${item.OL_TYPE==3}">
				 <span>分类：面料</span>
				</c:when>
				</c:choose> 
            </p>
        </div>
            </c:forEach>
    </div>
    <div class="kuai">
        <div class="k-top">其他项信息</div>
        <div class="k-content">
            <p>
                <span>订单号：${orders.oNo }</span>
                <c:if test="${orders.oInvoiceState==0}"><span>发票信息：无</span></c:if>
             	<c:if test="${orders.oInvoiceState==1}"><span>发票信息：${orders.oPatternNo}</span> </c:if> 
              	 <br/>
                <span>订单总价：￥${orders.oTotalPrice}</span>
                <br/>
                <span>下单时间：<fmt:formatDate value="${orders.oCreatTime}"  pattern="yyyy-MM-dd HH:mm:ss"/> </span>
                <br/>
                <span>付款时间：${orders.oFabricNo}</span>
            </p>
        </div>
    </div>
</body>
</html>